<include file="public@head"/>
<include file="public@member_head"/>

  <section class="body">
    <form id="account-homepage-form" method="POST" action="{:cmf_url('portal/list/index',array('id'=>74,'act'=>'supplier','type'=>'list'))}">
      <fieldset id="searchfieldset">
        <legend id="searchlegend"> <span class="filtertxt"> 查找您的帖子 </span>  </legend>
        <table id="searchtable">
          <tbody>
            <tr>
              <td>
                <span>
                <span class="filtertxt"><b>所有帖子</b></span> &nbsp;|&nbsp;
                <button class="filterbtn" name="filter_active" value="active" type="submit">活动</button>
                &nbsp;|&nbsp;
                <button class="filterbtn" name="filter_active" value="inactive" type="submit">非活动</button>
                </span>
              </td>
              <td> 分类中:
                <select id="catAbb" name="filter_cat" class="autosubmit filter_cat">
                  <option value="0">所有分类</option>
                </select></td>
              <td><input type="text" id="keyword" name="keyword" placeholder="搜索您的帖子" value="{$_MGPC_REQ['keyword']}">
                &nbsp;
                <input value="搜索" type="submit"></td>
            </tr>
          </tbody>
        </table>
      </fieldset>
    </form>
    <div class="new_posting_thing">
      <a href="{:cmf_url('portal/list/index',array('id'=>74,'act'=>'supplier','type'=>'cate'))}">点击发布新的信息</a>
    </div>
    <fieldset id="paginator">
      <legend id="paginator1"> ( 
      您当前发布的帖子
      ) </legend>
      <table class="accthp_postings tablesorter">
        <thead>
          <tr class="headers">
            <th> ID </th>
            <th> 信息标题 </th>
            <th> 区域和类别 </th>
            <th class="sorter-time_tag"> 发布日期 </th>
            <th class="sorter-false"> 管理 </th>
          </tr>
        </thead>
        <tbody>
        	<php>
            $where=[
            'post.create_time'=>['egt',0]
            ];
            if($keyword)
            {
            	$where+=[
                	'post.post_title'=>['like',"%$keyword%"]
                ];
            }           
            $page=[
                'list_rows'=>5,
                'next'=>$configlang['Next_page'],
                'prev'=>$configlang['Previous_page']
            ];
        </php>
        <portal:articles item="vo" where="$where" order="post.create_time DESC" page="$page"
                         relation="categories"
                         categoryIds="$category.id"
                         returnVarName="articles_data">
           <tr class="posting-row">

             <td class="status active">
               <small class="gc" style="background:">
               {$vo.id}
               </small>
             </td>
             

             <td class="title active">

                   <a href="{:cmf_url('portal/Article/index',array('id'=>$vo['id'],'cid'=>$category['id']))}">


{$vo.post_title}

                  </a>
             </td>

             <td class="areacat active">
               <b>
                 <abbr title="shanghai">sha</abbr>
               </b>

{$configindex['columnlist'][$vo.category_id]['name']}
             </td>

             <td class="dates active">
    {:date('Y-m-d H:i:s',$vo.published_time)}



             </td>

             
             <td class="buttons active">
               <div class="regular">
                              <form action="{:cmf_url('portal/list/index',array('id'=>74,'act'=>'supplier','type'=>'del','actid'=>$vo.id))}" method="POST" class="manage " onsubmit="return deltip('确定要删除此数据吗？');">
                                  <input type="hidden" name="action" value="delete">
                                      <input type="hidden" name="crypt" value="U2FsdGVkX18yMTE0MzIxMVegjcFUhYbsJtHk2I0mGdcZTC_v2ZzEmA">
                                  <input type="submit" name="go" value="删除" class="managebtn">
                              </form>
                              <form action="{:cmf_url('portal/list/index',array('id'=>74,'act'=>'supplier','type'=>'edit','actid'=>$vo.id))}" method="POST" class="manage ">
                                  <input type="hidden" name="action" value="edit">
                                      <input type="hidden" name="crypt" value="U2FsdGVkX18yMTE0MzIxMVwPyo9Kzg5H588PpsZQOO9I3kYuxl9IlA">
                                  <input type="submit" name="go" value="编辑" class="managebtn">
                              </form>
               </div>
             </td>

           </tr>
           </portal:articles>
      </tbody>
      </table>
      <div class="style-pages">
        <div class="style-pagination">
            <page/>
        </div>
    </div>
    </fieldset>
  </section>
  
<include file="public@member_foot"/>
<include file="public@footer"/>